package com.marchsoft.musicalstore.entity;

import org.springframework.data.annotation.Id;

import javax.persistence.Entity;
import java.util.Date;

/**
 * 今日课表实体类
 * 只用于查看今日课程
 */
public class SelfTodayClass {
    @Id
    private int id;//选课id
    private String name;//教师名
    private String courseTypeName;//课程类型名
    private String courseName;//课程名称
    private int leftTime;//剩余课时
    private Date classDate;//周几
    private int classTime;//当天上课时间
    private int classType;//课程类型
    private int limitNum;//限选人数
    private int passNum;//已选人数
    private int sumClassTime;//总课时

    public SelfTodayClass(){}

    public SelfTodayClass(int id, String name, String courseTypeName, String courseName, int leftTime, Date classDate, int classTime, int classType, int limitNum, int passNum, int sumClassTime) {
        this.id = id;
        this.name = name;
        this.courseTypeName = courseTypeName;
        this.courseName = courseName;
        this.leftTime = leftTime;
        this.classDate = classDate;
        this.classTime = classTime;
        this.classType = classType;
        this.limitNum = limitNum;
        this.passNum = passNum;
        this.sumClassTime = sumClassTime;
    }

    public String getCourseTypeName() {
        return courseTypeName;
    }

    public void setCourseTypeName(String courseTypeName) {
        this.courseTypeName = courseTypeName;
    }

    public int getLimitNum() {
        return limitNum;
    }

    public void setLimitNum(int limitNum) {
        this.limitNum = limitNum;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getLeftTime() {
        return leftTime;
    }

    public void setLeftTime(int leftTime) {
        this.leftTime = leftTime;
    }

    public Date getClassDate() {
        return classDate;
    }

    public void setClassDate(Date classDate) {
        this.classDate = classDate;
    }

    public int getClassTime() {
        return classTime;
    }

    public void setClassTime(int classTime) {
        this.classTime = classTime;
    }

    public int getClassType() {
        return classType;
    }

    public void setClassType(int classType) {
        this.classType = classType;
    }

    public int getPassNum() {
        return passNum;
    }

    public void setPassNum(int passNum) {
        this.passNum = passNum;
    }

    public int getSumClassTime() {
        return sumClassTime;
    }

    public void setSumClassTime(int sumClassTime) {
        this.sumClassTime = sumClassTime;
    }

    @Override
    public String toString() {
        return "SelfTodayClass{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", courseTypeName='" + courseTypeName + '\'' +
                ", courseName='" + courseName + '\'' +
                ", leftTime=" + leftTime +
                ", classDate=" + classDate +
                ", classTime=" + classTime +
                ", classType=" + classType +
                ", limitNum=" + limitNum +
                ", passNum=" + passNum +
                ", sumClassTime=" + sumClassTime +
                '}';
    }
}
